function useWebSocket(handleMessage) {
  // 存放后端地址
  const ws = new WebSocket('http:localhot:8080')

  const init = () => {
    bindEvent()
  }

  const bindEvent = () => {
    // ws.addEventListener('open',handleOpen,false)
    // ws.addEventListener('open',handleClose,false)
    // ws.addEventListener('open',handleError,false)
    // ws.addEventListener('open',handleMessage,false)
  }

  init()
}

export default useWebSocket